{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">充值申请</li>
			<li><a href="{:url('pay/all')}">充值成功</a></li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">

				<form class="layui-form layui-form-pane" action="{:url('pay/index')}" method="get">
					<div class="layui-inline">
						<label class="layui-form-label">关键词</label>
						<div class="layui-input-inline">
							<input type="text" name="keyword" value="{$keyword}" placeholder="请输入关键词" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<select name="ziduan">
							<option value="id" {if $ziduan=='id' }selected{/if}>会员ID</option>
							<option value="mobile" {if $ziduan=='mobile' }selected{/if}>会员账号</option>
						</select>
					</div>
					<div class="layui-inline">
						<button class="layui-btn">搜索</button>
					</div>
				</form>
				<hr>

				<table class="layui-table">
					<thead>
						<tr>
							<th>用户ID</th>
							<th>账号(手机号)</th>
							<th>金额</th>
							<th>支付方式</th>
							<th>支付账号</th>
							<th>支付截图</th>
							<th>时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						{foreach name="list" item="vo"}
						<tr>
							<td>{$vo.uid}</td>
							<td>{$vo.mobile}</td>
							<td>{$vo.money}</td>
							<td>
								{if $vo.status==1}银行卡{elseif $vo.status==2}支付宝{else /}微信{/if}
							</td>
							<td>{$vo.account}</td>
							<td><a  target="_blank" href="{$vo.thumb}"><img src="{$vo.thumb}" style="width: 100px;height: 100px;"/></a></td>
							<td>{$vo.add_time}</td>
							<td>
								<a href="{:url('pay/complete',['id'=>$vo['id']])}" class="layui-btn layui-btn-small ajax-text">完成</a>
								<a href="{:url('pay/cancel',['id'=>$vo['id']])}" class="layui-btn layui-btn-warm layui-btn-small ajax-text">取消</a>
								<a href="{:url('pay/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-small ajax-delete">删除</a>
							</td>
						</tr>
						{/foreach}
					</tbody>
				</table>
				<!--分页-->
				{$list->render()}
			</div>
		</div>
	</div>
</div>
{/block}